package com.cybersapien.comng.engine.context;

import com.cybersapien.comng.engine.entity.IEntity;
import com.cybersapien.comng.engine.event.engine.IEventEngine;
import com.cybersapien.comng.engine.event.gui.IEventGUI;

public class ContextHelper {

	static public void addEventEngine(IEventEngine event) {
		getContext().addEventEngine(event);
	}

	static public void addEventGUI(IEventGUI event) {
		getContext().addEventGUI(event);
	}

	static public boolean hasNextEventEngine() {
		return getContext().hasNextEventEngine();
	}

	static public IEventEngine currentEventEngine() {
		return getContext().currentEventEngine();
	}

	static public IEventEngine nextEventEngine() {
		return getContext().nextEventEngine();
	}

	static public void releaseContext() {
		ContextManager.getInstance().releaseContext();
	}

	static public <ENTITY extends IEntity> ENTITY findEntity(String id, Class<ENTITY> type) {
		return null;
	}

	static protected IContext getContext() {
		return ContextManager.getInstance().getContext();
	}
}
